package com.lvmama.pangolin.xc.service;

import java.util.List;
import java.util.Map;

import com.lvmama.pangolin.entity.InputCommodityVO;
import com.lvmama.pangolin.entity.xc.XCTicketCommodityItem;
import com.lvmama.pangolin.entity.xc.XCTicket_CommodityDetail;

public interface XCTicketCommodityItemsService {
	/**  
	* @Title：TCTicketCommodityDetailService.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年2月17日上午11:16:48  
	*/
	public int insert(XCTicket_CommodityDetail item)throws Exception;
	public void insertSelective(XCTicketCommodityItem item);
	public XCTicketCommodityItem selectById(String id,String productId)throws Exception;
	public int update(XCTicket_CommodityDetail item)throws Exception;
	public int updateByProdCommIdAndType(XCTicket_CommodityDetail item)throws Exception;
	public void updateSelective(XCTicketCommodityItem item);
	public List<XCTicketCommodityItem> selectByProdId(String product_id);
	public XCTicketCommodityItem selectByProdCommId(String productId,String commodityId);
	public List<XCTicketCommodityItem> selectByProdComName(String productId,String commodityName);
	public void updateByProdCommId(String productId,String commodityId);
	public void deleteLinkByProdCommId(String productId,String commodityId);
	public void deleteById(String id);
	public List<XCTicketCommodityItem> selectByProdidAndIsLinked(Map<String,String> map);
	public List<XCTicketCommodityItem> selectByCommVO(InputCommodityVO co);
	public List<XCTicketCommodityItem> getActiveCommodity(String productId);
	
}
